package com.Beans.Models;

// Generated 17-jul-2014 23:52:14 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Jefearea generated by hbm2java
 */
@Entity
@Table(name = "jefearea", catalog = "blitzdb")
public class Jefearea implements java.io.Serializable {

	private Integer idjefearea;
	private Area area;
	private String nombres;
	private String apellidos;
	private String user;
	private String password;
	private String correo;
	private Set<Solicitud> solicituds = new HashSet<Solicitud>(0);

	public Jefearea() {
	}

	public Jefearea(Area area, String nombres, String apellidos, String user,
			String password, String correo, Set<Solicitud> solicituds) {
		this.area = area;
		this.nombres = nombres;
		this.apellidos = apellidos;
		this.user = user;
		this.password = password;
		this.correo = correo;
		this.solicituds = solicituds;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "idjefearea", unique = true, nullable = false)
	public Integer getIdjefearea() {
		return this.idjefearea;
	}

	public void setIdjefearea(Integer idjefearea) {
		this.idjefearea = idjefearea;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "idArea")
	public Area getArea() {
		return this.area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	@Column(name = "Nombres", length = 45)
	public String getNombres() {
		return this.nombres;
	}

	public void setNombres(String nombres) {
		this.nombres = nombres;
	}

	@Column(name = "Apellidos", length = 45)
	public String getApellidos() {
		return this.apellidos;
	}

	public void setApellidos(String apellidos) {
		this.apellidos = apellidos;
	}

	@Column(name = "user", length = 45)
	public String getUser() {
		return this.user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	@Column(name = "password", length = 45)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "correo", length = 45)
	public String getCorreo() {
		return this.correo;
	}

	public void setCorreo(String correo) {
		this.correo = correo;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "jefearea")
	public Set<Solicitud> getSolicituds() {
		return this.solicituds;
	}

	public void setSolicituds(Set<Solicitud> solicituds) {
		this.solicituds = solicituds;
	}

}
